package com.cn.tous.auth.dtos;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.time.LocalDateTime;
import java.util.Collection;
import java.util.Set;

/**
 * @author mengwei
 * @description AuthUser
 * @createDate 2025/7/26 14:13
 */

@Setter
@Getter
public class AuthUser  extends User {

    private Long id;


    private String username;


    private String password;

    private String nickname;

    private String email;

    private String phone;

    // 1:正常 0:禁用
    private Integer status = 1;

    private Set<String> roles;

    private LocalDateTime createTime;


    private LocalDateTime updateTime;

    public AuthUser(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }



}
